
#ifndef __SYSTASK_H
#define	__SYSTASK_H

#include <stdint.h>
#include "pulse.h"
#include "rtctime.h"

#ifdef	__cplusplus
extern "C" {
#endif
	
#ifdef   _SYSTASK_MODULE_
#define  MY_EXT
#else
#define  MY_EXT  extern
#endif  

typedef struct
{
    volatile uint32_t ticks;
    timer_pulse_type pulse;
    TIME_Type sw_rtc;
} sys_run_st_type;

MY_EXT sys_run_st_type sysst;

#undef MY_EXT

#ifdef	__cplusplus
}
#endif

#endif	/* __SYSTASK_H */
